﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace CodeCity.UserMangament.Repository.Migrations
{
    public partial class CompleteTime : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<DateTime>(
                name: "CompleteTime",
                table: "House",
                type: "timestamp without time zone",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<bool>(
                name: "IsUnderConstruction",
                table: "House",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "MaxHumen",
                table: "House",
                type: "integer",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "Position",
                table: "House",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CompleteTime",
                table: "Hosiptal",
                type: "timestamp without time zone",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<bool>(
                name: "IsUnderConstruction",
                table: "Hosiptal",
                type: "boolean",
                nullable: false,
                defaultValue: false);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CompleteTime",
                table: "House");

            migrationBuilder.DropColumn(
                name: "IsUnderConstruction",
                table: "House");

            migrationBuilder.DropColumn(
                name: "MaxHumen",
                table: "House");

            migrationBuilder.DropColumn(
                name: "Position",
                table: "House");

            migrationBuilder.DropColumn(
                name: "CompleteTime",
                table: "Hosiptal");

            migrationBuilder.DropColumn(
                name: "IsUnderConstruction",
                table: "Hosiptal");
        }
    }
}
